using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CILDiff
{
    public partial class Topics : Form
    {
        public Topics()
        {
            InitializeComponent();
        }

        public void Bind(Hashtable ht)
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("Topic",typeof(string));
            dt.Columns.Add("State", typeof(string));
            foreach (string key in ht.Keys)
                dt.Rows.Add(key,ht[key]);
            dgTopics.DataSource = dt;

            dgTopics.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        }
    }
}